const mongoose = require('mongoose')
const Config = require('./db-config')
const student = require('../schema/student')

mongoose.connect(`${Config.DB_PATH}:${Config.DB_PORT}/${Config.DB_NAME}`,{ useNewUrlParser: true, useUnifiedTopology: true})

module.exports = mongoose.model('Student',new mongoose.Schema(student))
